package com.itkeien.streamprogramproject.customerstream;

import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class SimpleStream<T> {

    private Collection<T> collection;
    private SimpleStream(Collection<T> collection){
        this.collection = collection;
    }

    public static <T> SimpleStream of(Collection<T> collection){


        return new SimpleStream<>(collection);
    }

//    public static void main(String[] args) {
//        List<Integer> integers = List.of(1, 2, 3, 4, 5);
//
//        SimpleStream.of(integers).filter)(x->(x&1)==1)
//                .map(x->x*x)
//                .forEach(System.out::println);
//    }

}
